<div class="midder">
<div class="mc">

<?php $form=$this->beginWidget('CActiveForm', array(
        'id'=>'register-form',
        'enableClientValidation'=>true,
        'clientOptions'=>array(
                'validateOnSubmit'=>true,
        ),
)); ?>

<?php echo $form->errorSummary($model); ?>

        <div>
                <?php echo $form->labelEx($model,'username'); ?>
                <?php echo $form->textField($model,'username'); ?>
                <?php echo $form->error($model,'username'); ?>
        </div>
        
        <div>
                <?php echo $form->labelEx($model,'password'); ?>
                <?php echo $form->passwordField($model,'password'); ?>
                <?php echo $form->error($model,'password'); ?>
        </div>
        
        <div>
                <?php echo $form->labelEx($model,'repassword'); ?>
                <?php echo $form->passwordField($model,'repassword'); ?>
                <?php echo $form->error($model,'repassword'); ?>
        </div>
        
        <div>
                <?php echo $form->labelEx($model,'Email'); ?>
                <?php echo $form->textField($model,'email'); ?>
                <?php echo $form->error($model,'email'); ?>
        </div>
        
        
        <?php if(CCaptcha::checkRequirements()): ?>
        <div>
                <?php echo $form->labelEx($model,'verifyCode'); ?>
                <div>
                <?php $this->widget('CCaptcha'); ?>
                <?php echo $form->textField($model,'verifyCode'); ?>
                </div>
                <div class="hint">请输入在上图中显示的字母。
                <br/>字母不区分大小写</div>
                <?php echo $form->error($model,'verifyCode'); ?>
        </div>
        <?php endif; ?>
        
        <div>
                <?php echo CHtml::submitButton('注册'); ?>
        </div>

<?php $this->endWidget(); ?>

</div>
</div>